package top.archiesean.common.security.config;

import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author ArchieSean
 * @description 公共组件配置
 * @date 2024-01-30 19:26
 */
public class CommonConfiguration {

    /**
     * 密码加解密工具
     *
     * @return BCryptPasswordEncoder
     */
    @Bean
    public BCryptPasswordEncoder bCryptPasswordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
